/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.marcelo.agro.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.marcelo.comun.habilidades.Creable;
import org.openide.awt.ActionRegistration;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionID;

@ActionID(
        category = "Root",
        id = "org.marcelo.agro.actions.CreateAction"
        
        )

@ActionRegistration(displayName = "#CTL_CreateAction" , iconBase = "org/marcelo/agro/recursos/blue_plus_24x24.png")

@ActionReferences({
    @ActionReference(path = "Menu/File", position = 1300) ,
    @ActionReference(path = "Shortcuts", name = "F3")
        
})

public final class CreateAction implements ActionListener {
    private final  Creable context;

    public CreateAction(Creable context) {
        this.context = context;
    }
    
    
    @Override
    public void actionPerformed(ActionEvent e) {
        // TODO implement action body
        context.doNew();
    }
}
